package com.yhb.utils;

import me.edzh.spring.bootstrap.utils.security.Jwt;
import org.springframework.stereotype.Service;

@Service
public class JWTProvider implements Jwt.SecurityProvider {
    private static Jwt.SecurityOptions options;
    static {
        options = new Jwt.SecurityOptions();
        options.secret = "fuckyundim";
        options.expireTime = 60 * 60 * 1000 * 24 * 15; //有效期半个月
    }
    @Override
    public Jwt.SecurityOptions getSecurityOptions() {
        return options;
    }

    public static Jwt.SecurityOptions getOptions() {
        return options;
    }

    @Override
    public String getIssuer() {
        return "com.yhb";
    }
}
